<input type="text" id="<?php echo $this->fieldId; ?>" class="input inp_autocomplete" name="<?=$this->fieldName;?>" value="<?=htmlspecialchars($this->data);?>">
<script type="text/javascript">
$(document).ready(function() {
	$( "#<?php echo $this->fieldId; ?>" ).autocomplete({
		source: "<?=Mozg::Router('http')->Create($this->params['url']);?>",
		minLength: 2
	});
});
</script>